package com.celesea.auth.role.v1.controller.resource;

import com.celesea.auth.menu.vo.MenuTreeVo;
import com.celesea.auth.role.vo.RolePermissionVo;
import org.springframework.beans.BeanUtils;

import java.util.List;

public class RolePermissionResource {
    private String id;
    private String code;
    private String name;
    private List<String> permissions;
    private List<MenuTreeVo> permissionTrees;

    public RolePermissionResource(RolePermissionVo permissionVo) {
        BeanUtils.copyProperties(permissionVo,this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<String> permissions) {
        this.permissions = permissions;
    }

    public List<MenuTreeVo> getPermissionTrees() {
        return permissionTrees;
    }

    public void setPermissionTrees(List<MenuTreeVo> permissionTrees) {
        this.permissionTrees = permissionTrees;
    }
}
